#include "TestRenderCacheData.h"



TestRenderCacheData::TestRenderCacheData()
{
}


TestRenderCacheData::~TestRenderCacheData()
{
	if (m_pointData != nullptr)
	{
		delete[] m_pointData;
	}
	if (m_TriangleData != nullptr)
	{
		delete[] m_TriangleData;
	}
}

void TestRenderCacheData::SetVertextColor(const float& r, const float& g, const float& b)
{
	for (size_t i = 0; i < m_pointNum; i++)
	{
		RenderPointCacheData& renderPointCacheData = m_pointData[i];
		renderPointCacheData.color_r = r;
		renderPointCacheData.color_g = g;
		renderPointCacheData.color_b = b;
	}
}
